{% extends '::backend.html.twig' %}

{% block contenido-%}
{% if is_granted('ROLE_ADMINISTRADOR') %}
	<div class="container">
    <h3>Editar Reserva</h3>
				<form method="post" action="{{ path('administracion_booking_update',{'id':entity.id}) }}">
				<input type="hidden" name="_method" value="PUT" />
				<div class="col-md-4 col-md-offset-0">
					<div class="row form-group">
							{{ form_row(edit_form.bookcode) }}
					</div>			
					<div class="row form-group">
							{{form_row(edit_form.status) }}
					</div>
					<div class="row form-group">
							{{form_row(edit_form.paymethod) }}
					</div>
					<div class="row form-group">
							{{ form_row(edit_form.comment) }}
				</div>
			</div>
			<div class="col-md-4 col-md-offset-1">

					<div class="row form-group">
							{{ form_row(edit_form.operator) }}
					</div>
					<div class="row form-group">
							{{ form_row(edit_form.customer) }}
					</div>
					<div class="row form-group">
							{{ form_row(edit_form.product) }}
					</div>
					<div class="row form-group">
							{{ form_rest(edit_form) }}	
     <a class="btn btn-xs btn-link" href="{{ path('administracion_booking') }}">
																 Listar Reservas
     </a>
					</div>
				</div>
		</form>
	</div>
{% else %}
<p>Usted no tiene permisos para acceder a este area</p>
{% endif %}
{% endblock %}
